using system

function Show(a,b)
    var n = 0
    loop
        out.println("第" + (n + 1) + "个人BMI指数为:" + b[n] + ",属于XXXX(偏瘦或正常或超重)")
        n++
    until n == a 
end

var string0 = new string
var people = new number
var i = 0
var height = new number
var weight = new number
var BMI = new array

string0 = ">>请输入人数："
out.print(string0)
people = in.input()

if people < 1
    exit(0)
end

while i < people
    out.print(">>请输入第" + (i + 1) + "个人身高：")
    height = in.input()
    out.print(">>请输入第" + (i + 1) + "个人体重：")
    weight = in.input()
    BMI[i] = weight / height / height
    i++
end

Show(people,BMI)